import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import axios from 'axios';//引入axios
//配置默认基础路径
axios.defaults.baseURL = 'https://api.github.com'
//配置响应拦截器
axios.interceptors.response.use(res => res.data);
//原型上添加axios
React.Component.prototype.$axios = axios;

ReactDOM.createRoot(document.getElementById('root')).render(<App/>)